package top.colordreams.tenant.sping.starter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 动态租户配置属性
 *
 * @author 秋辞未寒
 */
@Data
@ConfigurationProperties(prefix = DynamicTenantProperties.PREFIX)
public class DynamicTenantProperties {

    public static final String PREFIX = "dynamic-tenant";

    private boolean enabled;

    /**
     * 默认租户ID
     */
    private String defaultTenantId;

    /**
     * 根租户ID
     */
    private String rootTenantId;

    /**
     * 默认租户是否为根租户
     */
    private boolean defaultTenantIsRoot;

}
